# TODO   1.求解1-100中能被3整除的所有数字的和


#
# sum = 0 #定义一个和
# a = 1
# while a<101:
#     if a%3 == 0:
#      sum += a
#     a += 1
# print(sum)
#





sum =0
a=1
while a<101:
    sum += a
    a += 1
print(sum)



#
# print(sum)
#
# if a % 3 == 0:
#     sum += a
#     a += 1